package staff;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class mainSchool{

    public mainSchool() {

        JFrame jframe = new JFrame("学校人力资源管理系统") ;
        Dimension d = new Dimension(300,400);
        Point p = new Point (250,350);
        jframe.setSize(d);
        jframe.setLocation(p);
        jframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        jframe.setVisible(true);
        JButton button1 = new JButton("添加");
        JButton button2 = new JButton("修改");
        JButton button3 = new JButton("查询");
        JButton button4 = new JButton("删除");
        JButton button5 = new JButton("浏览");
        FlowLayout flow = new FlowLayout(FlowLayout.LEFT,20,30);
        JPanel panel = new JPanel(flow);
        panel.setSize(300,400);
        panel.setBackground(Color.pink);
        panel.add(button1);
        panel.add(button2);
        panel.add(button3);
        panel.add(button4);
        panel.add(button5);
        jframe.getContentPane().add(panel);
        button1.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                add add =new add();
            }
        });
        button2.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                change change =new change();
            }
        });
        button3.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                ask ask =new ask();
            }
        });
        button4.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                delete delete =new delete();
            }
        });
        button5.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                look look =new look();
            }
        });



    }

    public static void main(String[] args) {
      new mainSchool();
    }
}



